import terser from "@rollup/plugin-terser";
import typescript from "@rollup/plugin-typescript";
import { nodeResolve } from '@rollup/plugin-node-resolve';

/**
 * @type { import("rollup").RollupOptions }
 */
export default {
    "input": "./src/index.ts",
    "output": {
        "dir": "dist",
        "format": "esm",
        "entryFileNames": "index.js",
        "sourcemap": true
    },
    plugins: [typescript({ "module": "ESNext" }), nodeResolve(), /*terser()*/]
};